package com.sk.restree.model.action;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import com.sk.restree.model.dao.BankListDAO;
import com.sk.restree.model.dao.MemberDAO;
import com.sk.restree.model.dto.BankDTO;
import com.sk.restree.model.dto.CardDTO;
import com.sk.restree.model.dto.MemberDTO;

public class BankSelectAction implements Action {

	@Override
	public Object execute(HttpServletRequest request,
			HttpServletResponse response) {
		
		String bname = request.getParameter("bname");
		List<CardDTO> cardlist = BankListDAO.getIntance().selectCardAsBname(bname);
		request.setAttribute("cardinfo", cardlist);
		return cardlist;
	}

}
